package com.sxj.corejava.code07_面向对象.多态;

/**
 * @author 石小俊
 * @date 2025年01月07日
 */
public class Man extends Person {
    private double salary;

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public void work() {
        System.out.println("工作");
    }

    public void show() {
        System.out.println("这是一个男人");
    }
}
